package cn.com.taurus.biz;

import cn.com.taurus.bean.FundAndFundTypeBean;
import cn.com.taurus.entity.Fund;
import cn.com.taurus.entity.FundAndFundType;
import cn.com.taurus.impl.FundAndFundTypeImpl;
import cn.com.taurus.mapper.FundAndFundTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author ljs
 * @createTime 2021年7月1日17:18:40
 * @remark 基金类型biz
 * @version 1.0
 */
@Service
public class FundAndFundTypeBiz {

    @Autowired
    private FundAndFundTypeImpl fundAndFundTypeImpl;

    public List<FundAndFundTypeBean> selectAllFundAndFundType() {
        return fundAndFundTypeImpl.selectAllFundAndFundType();
    }


    public List<FundAndFundTypeBean> selectConditionFundAndFundType(FundAndFundTypeBean fundAndFundTypeBean) {
        return fundAndFundTypeImpl.selectConditionFundAndFundType(fundAndFundTypeBean);
    }


    public FundAndFundTypeBean selectOneFundAndFundType(String fId) {
        return fundAndFundTypeImpl.selectOneFundAndFundType(fId);
    }

    public int updateFund(Fund fund) {
        return fundAndFundTypeImpl.updateFund(fund);
    }

    public int updateFundAndFundType(FundAndFundTypeBean fundAndFundTypeBean) {
        return fundAndFundTypeImpl.updateFundAndFundType(fundAndFundTypeBean);
    }


    public int deleteFundAndFundType(FundAndFundTypeBean fundAndFundTypeBean) {
        return fundAndFundTypeImpl.deleteFundAndFundType(fundAndFundTypeBean);
    }


    public int addFundAndFundType(FundAndFundTypeBean fundAndFundTypeBean) {
        return fundAndFundTypeImpl.addFundAndFundType(fundAndFundTypeBean);
    }

    public int selectFundType(String ftName){
        return fundAndFundTypeImpl.selectFundType(ftName);
    }
}
